package dao

import (
	"usplatformserver/internal/model"
)

// 查询图片列表
func (d *Dao) GetPatientImageList(organType int, patientStamp string) ([]*model.PatientImageInfo, error) {
	p := model.PatientInfo{OrganType: organType, TimeStamp: patientStamp}

	return p.GetImageList(d.engine)
}

// 查询图片组信息
func (d *Dao) GetImageGroup(patientStamp string, organType, imageId, imageType, bBoxId int) ([]*model.PatientImageInfo, error) {
	p := model.PatientInfo{TimeStamp: patientStamp, OrganType: organType}
	return p.GetImageGroup(d.engine, imageId, imageType, bBoxId)
}

// 查询甲状腺图片列表（按时间倒序）
func (d *Dao) GetThyroidImageListDescByTime(patientStamp string) ([]*model.PatientImageInfo, error) {
	p := model.PatientInfo{TimeStamp: patientStamp}
	return p.GetThyroidImageListDescByTime(d.engine)
}

// 查询乳腺图片列表（按时间倒序）
func (d *Dao) GetBreastImageListDescByTime(patientStamp string) ([]*model.PatientImageInfo, error) {
	p := model.PatientInfo{TimeStamp: patientStamp}
	return p.GetBreastImageListDescByTime(d.engine)
}
